home *** CD-ROM | disk | FTP | other *** search
/ .net - The Best of 1999/2000 / netCD Special01.iso / pc / Software / Dreamweaver / dreamw.exe / data1.cab / App_Files / Configuration / Commands / ConfirmDS.js < prev    next >
Encoding:
JavaScript  |  1999-12-09  |  644 b   |  20 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2.  
  3. function render() {
  4.   var btnList="", i;
  5.   document.msg.innerHTML = arguments[0]; //Insert the question
  6.   if (arguments.length > 1) {
  7.     for (i=1; i<arguments.length; i++)
  8.       btnList += "<input type='button' value='"+arguments[i]+"' onClick='setResult(\""+arguments[i]+"\")'>";
  9.     document.btns.innerHTML = btnList;
  10.   }
  11. }
  12.  
  13. function setResult(result) {
  14.   if (typeof MMNotes != 'undefined') { // Set values off of MMNotes object if it exists.
  15.     MMNotes.Confirm_RESULT = result;
  16.     MMNotes.Confirm_DONOTSHOW = document.cbDoNotAsk.checked;
  17.   }
  18.   window.close();
  19. }
  20.